package com.security.manage.search.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "user-microservice")
public interface UserMicroService {

    @GetMapping("/task/info")
    String getUserAndTaskId(@RequestParam("name") String name);

    @GetMapping("/user/uKey")
    String getData(@RequestParam("uKey") String uKey);

    @PostMapping("/update/task/status")
    String updateTaskStatus(@RequestParam("taskId")Long taskId);

    @GetMapping("/vpn/all")
    List<String> vpnList();

    @GetMapping("/computer/cpu")
    String getComputerAssetNumber(@RequestParam("cpuNumber") String cpuNumber);

    @GetMapping("/dept/users")
    String getManageBoundUsbKey(@RequestParam("manageDept") String manageDept,
                                @RequestParam(value = "type",required = false) Integer type);

    @GetMapping("/user/all")
    String listAll();
}
